<?php foreach($data as $temp){ ?>
	<h2><?php print $temp['year'];?></h2>
	<p>
		<table class="vivilldocuments">
		    <thead>
				<tr>
					<th><?php print t('Party');?></th>
					<th><?php print t('Title');?></th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($temp['document'] as $doc){ ?>
				<tr>
					<td><?php print $doc['party_label'];?></td>
					<td><img src="/<?php print drupal_get_path('module', 'sndvivill');?>/include/<?php print $doc['type'];?>.png" alt="<?php print $doc['type'];?>"><?php print l($doc['title'], $doc['link']);?></td>
				</tr>
				<?php }?>
			</tbody>
		</table>	
		<!-- 
		<ul class="vivill_documents">
		<?php foreach($temp['document'] as $doc){ ?>
			<li class="<?php print $doc['type'];?>"><?php print l($doc['title'], $doc['link']);?></li>
		<?php }?>
		</ul>
		-->
	</p>
<?php }?>


